Ext.define("AmpleHarvest.objects.comments.store.CommentsList", 
{
    extend: 'Ext.data.Store',
    alias  : 'widget.ampleharvest-objects-comments-store-commentslist',
    requires:
    [
      "AmpleHarvest.objects.comments.model.Comments"
    ],
    model: 'AmpleHarvest.objects.comments.model.Comments',
    params : null,
    proxy: 
    {
        type: 'ajax',
        url:  obj_config.C_STR_EXTERNAL_PATH+'/rest/irt/comments.php',
        baseParams      :{
      },
        reader: {
            type: 'json',
            root: 'data',
            totalProperty: 'total'
        }
    },
    initComponent: function() 
    {
      this.params = new Object();
      this.callParent();
    },
    
    set_Action:function(str_Action)
    {
      if(!this.params)
      {
         this.params = new Object();
      }
      this.params.action = str_Action;
      
      this.set_Params();
    } ,
    
    set_Params:function()
    {
         
      if(!this.params)
      {
         this.params = new Object;
      }
      this.proxy.extraParams = this.params;
    } 
});